<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>商品列表</title>
		<link rel="stylesheet" href="css/pagination.css"/>
		<link rel="stylesheet" href="css/public.css"/>
		<link rel="stylesheet" href="css/index.css"/>
		<link rel="stylesheet" href="css/list.css"/>
	</head>
	<body>
		
		<!-- 顶部区域 -->
		<div id="list_top"></div>
		
		<!-- 商品列表部分 -->
		<div id="list">
			<ul></ul>
		</div>
		<div class="page">
			<div id="Pagination" class="pagination"></div>
		</div>
		<div id="list_footer"></div>
		
		<script src="js/jquery.js"></script>
		<script src="js/menu.js"></script>
		<script>
			$("#list_top").load("http://localhost/project/data/top.html",function(){
				$(".top_car").find("a").attr("href","shoppingcar.html");
				$(".head_car").attr("href","shoppingcar.html");
				
				// var ocount=document.querySelector(".top_car .top_car_count")
				// var crr=JSON.parse(getCookie("shoplist"))
				// var sum=0
				// if(crr.length!=0){//第一次cookie是空的直接追加，从点击一次之后开始赋值
				// 	for(var i=0;i<crr.length;i++){
				// 			sum += crr[i].count;
				// 	}
				// 	ocount.innerHTML=sum
				// }
			})
			$("#list_footer").load("http://localhost/project/data/footer.html",function(){
				
			})
		</script>
		<script src="js/jquery.pagination.js"></script>
		<script src="js/cookie.js"></script>
		<script src="js/list.js"></script>
		
		<!-- 底部版权 -->
	
		
	</body>
</html>
